package com.framework.minio.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;


/**
 * Minio配置类
 * @create 2021/4/9
 */

@Data
@ConfigurationProperties(prefix = "spring.minio")
public class MinioConfig {

    /**
     * 连接url
     */
    private String endpoint;

    /**
     * 用户名
     */
    private String accessKey;

    /**
     * 密码
     */
    private String secretKey;

    /**
     * 存储桶
     */
    private String bucketName;

    /**
     * 下载前缀
     */
    private String downloadPrefix;

    /**
     * 来源目录
     */
    private String sourceDirs;

    /**
     * 结果目录
     */
    private String runningDirs;

    /**
     * 结果目录
     */
    private String targetDirs;

    /**
     * 下载url增加参数
     */
    public String urlDownloadParam = "response-content-type=application/octet-stream";

}
